<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			this.getUserInfo();
			
		},
		onShow: function() {
			console.log('App Show')
			
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			getUserInfo(){
				var that=this;
				that.$http.post('/employe/getCurEmployeInfo', {}, (res) => {
					if (res.data.success) {
						uni.setStorageSync('permissions', JSON.stringify(res.data.result.permissions));
						uni.setStorageSync('employe', JSON.stringify(res.data.result));
						// that.$ws.init();
					} else {
						that.refs.myModal.show('请求失败', res.data.result.message);
					}
				});
			}
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	// @import "@/static/iconfont/iconfont.css";//
	// @import "@/static/iconfont/iconfont.css";//
	page{
		background-color: #F8F8F8;
	}
	.currency::before {
		content: "￥";
	}
	.ellipsis {
		overflow: hidden;
		/* 溢出隐藏 */
		white-space: nowrap;
		/* 不换行 */
		text-overflow: ellipsis;
		/* 文本溢出显示省略号 */
	}
</style>